﻿@{
    ViewBag.Title = "网站全局管理";
    var config = ViewBag.config as HynuIOTA.Entity.WebConfig;
}
@section scripts
{
    <script>
        function doBegin() {
            window.top.$.msgBoxObj.showMsgInfo('正在提交数据....');
        }

        function doFail() {
            window.top.$.msgBoxObj.showMsgErr('网络异常!');
        }

        function doComplete(xhrObj) {
            $.processJsonMsg(xhrObj.responseText);
        }
    </script>
}
@section headSection
{
    <style>
        #news-form {
            margin-top: 20px;
        }

            #news-form .input-div {
                margin: 20px 20px 20px 40px;
                display: block;
            }
    </style>
}
<div>
    @using (Ajax.BeginForm("PutConfig", new { area = "Admin", controller = "Config" }, new AjaxOptions()
    {
        HttpMethod = "Put",
        OnBegin = "doBegin",
        OnFailure = "doFail",
        OnComplete = "doComplete"
    }, new { id = "news-form", name = "news-form" }))
    {
        <input type="hidden" name="Id" value="@config.Id" />
        <div class="input-div"><input id="Title" name="Title" value="@config.Title" class="easyui-textbox" data-options="label:'网站名称：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div"><input id="Url" name="Url" value="@config.Url" class="easyui-textbox" data-options="label:'网站地址：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div"><input id="Description" name="Description" value="@config.Description" class="easyui-textbox" data-options="label:'网站描述：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div"><input id="Author" name="Author" value="@config.Author" class="easyui-textbox" data-options="label:'网站作者：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div"><input id="Address" name="Address" value="@config.Address" class="easyui-textbox" data-options="label:'通讯地址：',labelPosition:'left',labelWidth:100," style="width:95%; height: 30px;"></div>
        <div class="input-div"><input id="Telephone" name="Telephone" class="easyui-textbox" value="@config.Telephone" data-options="label:'通讯电话：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div"><input id="RecordCode" name="RecordCode" class="easyui-textbox" value="@config.RecordCode" data-options="label:'备案信息：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div"><input id="Statistics" name="Statistics" class="easyui-textbox" value="@config.Statistics" data-options="label:'统计代码：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div"><input id="Copyright" name="Copyright" value="@config.Copyright" class="easyui-textbox" data-options="label:'版权信息：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div"><input id="Version" name="Version" value="@config.Version" class="easyui-textbox" data-options="label:'版本信息：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div"><input id="UpdateTime" name="UpdateTime" value="@config.UpdateTime" class="easyui-textbox" data-options="label:'更新时间：',labelPosition:'left',labelWidth:100," style="width: 95%; height: 30px;"></div>
        <div class="input-div">
            <input type="submit" class="easyui-linkbutton button-blue l-btn l-btn-small" name="submit" style="width: 80px; height: 40px; margin: 10px 10px 10px 200px" value="保存" />
        </div>
    }
</div>